package com.usian.admin.controller.v1;

import com.usian.admin.service.AdChannelService;
import com.usian.admin.service.AdUserService;
import com.usian.apis.admin.AdChannelControllerApis;
import com.usian.apis.admin.LoginControllerApis;
import com.usian.model.admin.dtos.AdUserDto;
import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/login")
public class LoginController implements LoginControllerApis {


    @Autowired
    AdUserService adUserService;

    @PostMapping("/in")
    @Override
    public ResponseResult login(@RequestBody AdUserDto adUserDto) {
        return adUserService.login(adUserDto);
    }
}
